package com.example.easyexcel.service.impl;

import com.example.easyexcel.pojo.DownloadData;
import com.example.easyexcel.pojo.Student;
import com.example.easyexcel.pojo.Teacher;
import com.example.easyexcel.service.StudentService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {


    @Override
    public void readExcel(List<Student> students, String fileName) {
        int size = students.size();
        System.out.println(size);
        for (Student student : students) {
            System.out.println(student);
        }
        //根据fileName 去查showid
    }

    @Override
    public int isnertShuju() {
        ArrayList<Teacher> loadData = new ArrayList<>();
        for (int i=0;i<1000;i++){
            Teacher downloadData = new Teacher();
            downloadData.setAge("12");
            downloadData.setName("12");
            downloadData.setSex("12");
            loadData.add(downloadData);
        }

        return 0;
    }
}
